package com.ruoyi.tactics.algorithm;

import com.ruoyi.tactics.ZodiacResult;

import java.util.Arrays;
import java.util.List;

/**
 * 绿波
 */
public class LVBAlgorithm extends AbstractAlgorithm {

    private final List<Integer> green = Arrays.asList(3, 4, 9, 10, 14, 15, 20, 25, 26, 31, 36, 37, 41, 42, 47, 48);

    @Override
    public Boolean isWin(ZodiacResult zodiacResult, String... code) {
        return green.contains(zodiacResult.getTm());
    }

    public static void main(String[] args) {
        LVBAlgorithm algorithm = new LVBAlgorithm();
        ZodiacResult zodiacResult = new ZodiacResult();
        zodiacResult.setPm(Arrays.asList(1, 2, 3, 4, 5));
        zodiacResult.setTm(8);
        System.out.println(algorithm.isWin(zodiacResult));
    }
}
